package com.azf.springboot2.demos.service.impl;

import com.azf.springboot2.demos.entity.StudentList;
import com.azf.springboot2.demos.entity.vo.StudentGradVO;
import com.azf.springboot2.demos.mapper.Vomapper;
import com.azf.springboot2.demos.service.Voservice;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/*
功能描述:
作者：14136
创造日期：2024/11/19
*/
@Service
public class VoserviceImpl implements Voservice {
     @Resource
    private Vomapper voMapper;

    @Override
    public List<StudentGradVO> list() {
        return voMapper.list();
    }
       @Override
    public void insert(StudentList vo){
      voMapper.insert(vo);
    }
    @Override
    public void update(StudentGradVO vo){
      voMapper.update(vo);
    }

    @Override
    public void delete(Integer[] ids) {
        for (Integer id:ids) voMapper.delete(id);

    }
}
